<%@ page language="java" import="java.util.*" pageEncoding="GB18030"%>
<%@page import="live.common.PostParam"%>
<%@page import="live.pay.ServiceIds"%>
<%@page import="live.common.Format"%>
<%@page import="live.common.GetSequence"%>
<%@page import="live.pay.SignUtil"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
Map<String, Object> map = new TreeMap<String, Object>();
map.put("service_id", ServiceIds.SINGLE_PEN_RECON);
map.put("req_org_cd", PostParam.REQ_ORG_CD);
map.put("req_trans_tm", Format.getInstance().dateFormatString(new Date(), "yyyyMMddHHmmss"));
map.put("req_trans_seq", GetSequence.returnSeqNum());
map.put("original_service_id",request.getParameter("service_id"));
map.put("order_id", request.getParameter("order_id"));
map.put("original_trans_seq", request.getParameter("seqnum"));
if(request.getParameter("type").equals("mobile")){
	map.put("notify_url", PostParam.MOBILE_NOTIFY);
}else{
	map.put("notify_url", PostParam.FLIGHT_NOTIFY);
}
map.put("sign", SignUtil.sign(map,PostParam.PAYKEY));
map.put("sign_type", PostParam.SIGN_TYPE);
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
  <body>
   <form name="pform" action="<%=PostParam.RECON %>" method="post" target="_parent">
   		<input type="hidden" name="service_id" value="<%=ServiceIds.SINGLE_PEN_RECON%>"/>
    	<input type="hidden" name="req_org_cd" value="<%=PostParam.REQ_ORG_CD %>"/>
    	<input type="hidden" name="req_trans_tm" value="<%=Format.getInstance().dateFormatString(new Date(), "yyyyMMddHHmmss") %>"/>
    	<input type="hidden" name="req_trans_seq" value="<%=GetSequence.returnSeqNum()%>"/>
    	<input type="hidden" name="order_id" value="<%=request.getParameter("order_id")%>"/>
    	<input type="hidden" name="original_trans_seq" value="<%=request.getParameter("seqnum")%>"/>
    	<input type="hidden" name="notify_url" value="<%=map.get("notify_url") %>"/>
    	<input type="hidden" name="sign" value="<%=map.get("sign") %>"/>
    	<input type="hidden" name="sign_type" value="<%=map.get("sign") %>"/>
   </form>
   <script type="text/javascript">
   	document.forms['pform'].submit();
   </script>
  </body>
</html>
